package com.pc.tas.export;

import javax.servlet.http.HttpServletRequest;

public class URLUtil {
	
	public static String getUrlHttpPath(HttpServletRequest request) {
	    StringBuffer url = new StringBuffer();
	    url.append("http://");
	    url.append(request.getServerName());
	    url.append(":");
	    url.append(request.getServerPort());
	    url.append(request.getContextPath());
	    return url.toString();
	  }
	
}
